<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>transform-origin的使用效果</title>
    <style>
        @keyframes hezi {
            50% {
                transform: rotate(90deg);
            }
            100% {
                transform: rotate(0deg);
            }
        }
        
        div {
            overflow: hidden;
            width: 200px;
            height: 200px;
            border: 1px solid pink;
            margin: 300px auto;
        }
        
        div::before {
            content: "伟哥最帅！";
            width: 100%;
            height: 100%;
            display: block;
            background-color: skyblue;
            transform: rotate(180deg);
            transform-origin: left bottom;
            animation: hezi 0.6s;
            animation-iteration-count: infinite;
            /* transition: all 0.6s; */
        }
        /* div:hover::before {
            transform: rotate(0deg);
        } */
    </style>
</head>

<body>
    <div></div>
</body>

</html>